package cn.mw.cmdb.trigger;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class MwNotifyByScopeView {
    private String id;
    private String type;
    private List<MwNotifyOverView> notifyOverView;

    public void addMwNotifyOverView(MwNotifyOverView mwNotifyOverView){
        if(null == notifyOverView){
            notifyOverView = new ArrayList<>();
        }
        notifyOverView.add(mwNotifyOverView);
    }
}
